package sqlparser;
/** */

/**
 *
 * 单句使用数据库语句解析器
 */
public class CreateViewSqlParser extends BaseSingleSqlParser
{

	public CreateViewSqlParser(String originalSql) {
		super(originalSql);

	}

	//create table table_name(id int not null primary key,name varchar(8) not null );
	@Override
	protected void initializeSegments()
	{
		segments.add(new SqlSegment("(create view)(.+)( as)","[,]"));
		segments.add(new SqlSegment("(as)(.+)( ENDOFSQL)","[,]"));

	}

}
